package com.sunny.ihealth.entity.bmob;

import cn.bmob.v3.BmobObject;

/**
 * 评论表
 * Created by Sunny  An on 2016/6/3.
 */
public class Comment extends BmobObject {
    private UserInfo author;
    private Post post;
    private String content;
    private Integer id;

    public Comment() {
    }

    public Comment(UserInfo author, Post post, String content) {
        this.author = author;
        this.post = post;
        this.content = content;
    }

    public Comment(String tableName, UserInfo author, Post post, String content) {
        super(tableName);
        this.author = author;
        this.post = post;
        this.content = content;
    }

    public UserInfo getAuthor() {
        return author;
    }

    public void setAuthor(UserInfo author) {
        this.author = author;
    }

    public Post getPost() {
        return post;
    }

    public void setPost(Post post) {
        this.post = post;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
}
